package vars

import (
	"gitee.com/csingo/cDB"
	"gitee.com/csingo/cDB/drivers"
)

var DatabaseConfig = &cDB.DatabaseConf{
	Connections: map[string]drivers.DriverInterface{
		//"mysql": &mysql.Connection{
		//	Driver:    mysql.Driver,
		//	Host:      "127.0.0.1",
		//	Port:      3306,
		//	Database:  "test",
		//	Username:  "root",
		//	Password:  "123456",
		//	Charset:   "utf8mb4",
		//	Collation: "utf8mb4_general_ci",
		//	Prefix:    "",
		//	Debug:     false,
		//	Pool: &mysql.ConnectionPool{
		//		MaxIdleConnections: 100,
		//		MaxConnections:     200,
		//		ConnectTimeout:     10,
		//		MaxIdleTime:        10,
		//	},
		//	HealthCheck: nil,
		//},
		//"redis": &redis.Connection{
		//	Driver:       redis.Driver,
		//	Host:         "127.0.0.1",
		//	Port:         6379,
		//	Auth:         "",
		//	DB:           0,
		//	Retries:      3,
		//	DialTimeout:  10,
		//	ReadTimeout:  10,
		//	WriteTimeout: 10,
		//	Pool: &redis.ConnectionPool{
		//		Size:         10,
		//		MinIdleConns: 1,
		//		PoolTimeout:  10,
		//		IdleTimeout:  10,
		//	},
		//},
	},
}
